package com.hk.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 空间
 * @author 20231
 * @TableName space
 */
@TableName(value ="space")
@Data
public class Space implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "空间名称")
    @TableField(value = "spaceName")
    private String spaceName;

    @ApiModelProperty(value = "空间级别：0-普通版 1-专业版 2-旗舰版")
    @TableField(value = "spaceLevel")
    private Integer spaceLevel;

    @ApiModelProperty(value = "空间图片的最大总大小")
    @TableField(value = "maxSize")
    private Long maxSize;

    @ApiModelProperty(value = "空间图片的最大数量")
    @TableField(value = "maxCount")
    private Long maxCount;

    @ApiModelProperty(value = "当前空间下图片的总大小")
    @TableField(value = "totalSize")
    private Long totalSize;

    @ApiModelProperty(value = "当前空间下的图片数量")
    @TableField(value = "totalCount")
    private Long totalCount;

    @ApiModelProperty(value = "创建用户 id")
    @TableField(value = "userId")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime")
    private Date createTime;

    @ApiModelProperty(value = "编辑时间")
    @TableField(value = "editTime")
    private Date editTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updateTime")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "isDelete")
//    @TableLogic
    private Integer isDelete;
    @ApiModelProperty(value = "空间类型：0-私有空间，1-团队空间")
    @TableField(value = "spaceType")
    private Integer spaceType;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}